#ifndef _FLOWER_H_
#define _FLOWER_H_
#include <d3dx9.h>
#include "Sprite.h"
#include "CGame.h"
#include "Object.h"
#include "Global.h"
#include "Texture.h"

#define FLOWER_GRAVITY		0.01

class Flower : public Object
{
public:
	float _xPre;
	float _yPre;

	bool	_isMushroom;				//la nam
	bool _isGravity;

public:
	Texture * _texture;
	Flower(int id, float x, float y, int type, int state);
	~Flower(void);
	void Render(int vpX, int vpY);
	void Update(list<Object *> *_list, float time);
	OBJECT_TYPE getObjectType();
	void CheckObjects(list<Object*>* _list);
	void Move(list<Object*>* _list, float time);
	void changeState(int state);
};

#endif